import pymysql

db = pymysql.connect(host="localhost",user="root",password="12345678",database="mrsoft")
cursor = db.cursor();

cursor.execute("SELECT VERSION()")

data = cursor.fetchone()
print("Database version : %s" % data)

db.close()
